package cn.jiyun.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data//提供get/set方法以及toString方法
@NoArgsConstructor//提供无参构造
@AllArgsConstructor//提供有参构造
public class User {

    private Integer id;

    private String nam;

    private String pwd;

    private Integer sex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birth;

}
